package com.change.study.mongodb.service;

import java.util.List;

import com.change.study.data.core.Pagination;
import com.change.study.mongodb.domain.Back;
import com.change.study.mongodb.domain.Maopao.Comment;
import com.change.study.mongodb.domain.Maopao.Like_user;
import com.change.study.mongodb.domain.MaopaoObject;
import com.change.study.mongodb.domain.MaopaoObjectBack;
import com.openyelp.annotation.RestFul;



@RestFul(api=MaopaoService.class,value="MaopaoService")
public interface MaopaoService {

	public Back Add(MaopaoObject postAction);
	
	public Back delete(String  id);
	public MaopaoObject findById(String  id);

	public List<MaopaoObject> pape(int curpage,int pagesize);
	public MaopaoObjectBack find(int curpage,int pagesize);
	public Back like(String actionid,Like_user postLike);

	public Back unlike(String actionid,Like_user postLike);

	public Back comment(String actionid,Comment comment);
	public Back uncomment(String actionid,Comment comment);

	public Pagination findByUser(String userid, int curpage, int pagesize);
	public MaopaoObjectBack findByName(String userid, int curpage, int pagesize);

}
